#pragma once
#include "Object.h"
#include <math.h>
class Box;
class Sprite;
class StandSniper : public Object
{
	Sprite *_left_gun;
	Sprite *_right_gun;
	Sprite *_left_top_gun;
	Sprite *_righ_top_gun;
	Sprite *_left_bottom_gun;
	Sprite *_right_bottom_gun;	
	bool _isShooting;
	float _angle;
	Box* player;
	float delay2;
	bool _isleft;
	int _bulletCount;
public:
	void init();
	void update();
	void render();
	float GetAngle();
	D3DXVECTOR2 SetPosGun(int index);
	int GetIndex();
	int SetGunIndex();
	StandSniper(Box*);
	~StandSniper(void);

	virtual Box* getCollisionBox();

};

